<?php /*a:1:{s:66:"/www/web/siteweb/Cloud/application/mobile/view/Index/register.html";i:1638339947;}*/ ?>
<!DOCTYPE html>
<!-- saved from url=(0049)https://www.shengmancc.com/?invited_code=e75b1ery -->
<html lang="zh-CN" style="--status-bar-height:0px; --top-window-height:0px; --window-left:0px; --window-right:0px; --window-margin:0px; --window-top:calc(var(--top-window-height) + 0px); --window-bottom:0px;">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>聆听科技</title>
    <script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
    document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
    <link rel="stylesheet" href="/yao/css/index.9ffdaeb8.css" />

    <script charset="utf-8" src="/yao/js/pages-index-index.0dc65ac9.js"></script>




    <style type="text/css">@charset "UTF-8";
    .content[data-v-9d7063f2]{padding:30px 50px 50px}
    .logo[data-v-9d7063f2]{text-align:center}
    .logo uni-image[data-v-9d7063f2]{width:150px;margin:0 0 20px}
    .uni-form-item[data-v-9d7063f2]{margin-bottom:20px;padding:0;border-bottom:1px solid #e3e3e3}
    .uni-form-item .uni-input[data-v-9d7063f2]{font-size:15px;padding:7px 0}
    .column-with-btn[data-v-9d7063f2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}
    .column-with-btn uni-button[data-v-9d7063f2]{font-size:12px;margin:0;width:110px;color:#0e28ee;text-align:center;background-color:#fff}
    .column-with-btn uni-button[data-v-9d7063f2]:after{border:none}
    .column-with-btn uni-button.active[data-v-9d7063f2]{background-color:#0e28ee;color:#fff}
    .img-captcha[data-v-9d7063f2]{width:75px;height:30px}
    uni-button[type="primary"][data-v-9d7063f2]{background-color:#0e28ee;border-radius:0;font-size:17px;margin-top:30px}
    .links[data-v-9d7063f2]{text-align:center;margin-top:20px;font-size:13px;color:#999}.links uni-view[data-v-9d7063f2]{display:inline-block;vertical-align:top;margin:0 5px}.links .link-highlight[data-v-9d7063f2]{color:#0e28ee}
    .uni-body{
         background: url("/yao/back.jpg") round;
    background-size: 100%;
   
    }
  input::-webkit-input-placeholder {
        color: #FFFFFF;
      }
      input::-moz-input-placeholder {
        color: #FFFFFF;
      }
      input::-ms-input-placeholder {
        color: #FFFFFF;

}
.uni-input-input{
    color: #FFFFFF;
}
    </style>
</head>
<body class="uni-body pages-index-index">

<uni-app class="uni-app--maxwidth">
    <uni-page data-page="pages/index/index">
        <!---->
        <!---->
        <uni-page-wrapper>
            <uni-page-body>
                <uni-view data-v-9d7063f2="" class="content">
                    <uni-view data-v-9d7063f2="" class="logo">
                       
                    </uni-view>
                    <uni-view data-v-9d7063f2="" class="uni-form-item uni-column" style="padding-top:48vh">
                        <uni-input data-v-9d7063f2="" class="uni-input">
                            <div class="uni-input-wrapper">
                                <div class="uni-input-placeholder input-placeholder" data-v-9d7063f2="">

                                </div>
                                <input maxlength="140" type="" class="uni-input-input"  placeholder="请输入手机号码" id="phone"/>

                            </div>
                        </uni-input>
                    </uni-view>
                    <uni-view data-v-9d7063f2="" class="uni-form-item uni-column column-with-btn" >
                        <uni-input data-v-9d7063f2="" class="uni-input">
                            <div class="uni-input-wrapper">

                                <input maxlength="6"  type="number" class="uni-input-input" placeholder="请输入验证码" id="smscode"/>

                            </div>
                        </uni-input>
                        <uni-button data-v-9d7063f2="" class="" id="sendcode">
                            发送验证码
                        </uni-button>
                    </uni-view>


                    <uni-view data-v-9d7063f2="" class="uni-form-item uni-column" style="display: none;">
                        <uni-input data-v-9d7063f2="" class="uni-input">
                            <div class="uni-input-wrapper">
                                <div class="uni-input-placeholder input-placeholder" data-v-9d7063f2="" >
                                    请输入邀请码
                                </div>
                                <input maxlength="140" id="yao_code" type="hidden" class="uni-input-input" placeholder="请输入邀请码" disabled />
                            </div>
                        </uni-input>
                    </uni-view>
                    <uni-view class="tooltip">
                        <div class="tooltiptext" style="display: none"></div>
                    </uni-view>
                    <uni-button data-v-9d7063f2="" id="reg" class="" type="primary"  style="background-color: #007aff">
                        注册
                    </uni-button>
                    <uni-view data-v-9d7063f2="" class="links">
                        <uni-view data-v-9d7063f2="" class="link-highlight">
                            下载APP
                        </uni-view>
                    </uni-view>
                    <uni-view data-v-9d7063f2="" class="links">
                        <uni-view data-v-9d7063f2="" class="link-highlight" style="font-size:18px">
                           聆听办公目前只支持安卓手机下载，苹果版本还在开发中...
                        </uni-view>
                    </uni-view>
                </uni-view>
                <uni-view>
                </uni-view>
            </uni-page-body>
        </uni-page-wrapper>
    </uni-page>
</uni-app>
<script src='/static/js/jquery.min.js'></script>
<script>
    var code = "<?php echo $_GET['code'];?>";
    var inter;
    var inter2;
    var time = document.getElementsByClassName("tooltiptext")[0];
    var t = 60;
    $("#yao_code").val(code);
    $("#sendcode").click(function(){
        var phone = $("#phone").val();
        if(!phone){
            $(".tooltiptext").text("请输入手机号码")
            $(".tooltiptext").show();
            inter = setInterval("fun()", 2000);
            return;
        }
        $.post('/mobile/Index/sendcode', {
            phone:phone
        }, function (res) {
            console.log(res);
            var data = res.data;
            $(".tooltiptext").text(data.msg);
            $(".tooltiptext").show();
            inter = setInterval("fun()", 2000);
            if(data.code == 1){
                inter2 = setInterval("daojishi()",1000);
            }
            if(data.msg == '号码已经注册'){
                setInterval("tiaozhuan()",1000);
            }
        }, 'json');
    })

    function fun() {
        clearInterval(inter);
        $(".tooltiptext").hide();
        $(".tooltiptext").text("")

    }
    function tiaozhuan(){
        window.location.href="https://www.lingtingkj.com/app/index.html";
    }
    function daojishi() {
        t--;
        if(t < 0){
            $("#sendcode").text("获取验证码");
            $('#sendcode').removeAttr('disabled');
        }else{
            $("#sendcode").text("倒计时"+t+"s");
            $('#sendcode').attr('disabled',"true");
        }
    }
    $("#reg").click(function(){
        var phone = $("#phone").val();
        if(!phone){
            $(".tooltiptext").text("手机号码不能为空");
            $(".tooltiptext").show();
            inter = setInterval("fun()", 2000);
            return;
        }
        var code = $("#smscode").val();
        if(!code){
            $(".tooltiptext").text("验证码不能为空");
            $(".tooltiptext").show();
            inter = setInterval("fun()", 2000);
            return;
        }
        var yao_code = $("#yao_code").val();
        if(!yao_code){
            $(".tooltiptext").text("邀请码不能为空");
            $(".tooltiptext").show();
            inter = setInterval("fun()", 2000);
            return;
        }
        $.post('/mobile/Index/regPost', {
            phone:phone,
            code:code,
            yao_code:yao_code
        }, function (res) {
            console.log(res);
            var data = res.data;
            $(".tooltiptext").text(data.msg);
            $(".tooltiptext").show();
            inter = setInterval("fun()", 2000);
            if(data.code == 1){
                window.location.href="https://www.lingtingkj.com/app/index.html";
            }
        }, 'json');
    })
    $(".link-highlight").click(function(){
        window.location.href="https://www.lingtingkj.com/app/index.html";
    })

</script>
</body>
</html>